import { request } from "../utils/request"
const getRightTree=async ()=>{
    return await request.get("/right/tree"); 
}

const addRight=async (params:any)=>{
    return await request.post("/right/add",params); 
}

const updateRight=async (params:any)=>{
    return await request.post("/right/update",params); 
}

const deleteRight=async (id:number)=>{
    return await request.post("/right/delete",{id}); 
}

export { getRightTree, addRight, updateRight, deleteRight };
